/* .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 75%;
    margin: auto;
}

.grid-item {
    background-color: #FFFFFF;
    box-shadow: 0px 10px 50px 0px #9D9D9D26;
    display: flex;
    justify-content: center;
    place-items: center;
    gap: 30px;
}

.grid-inner-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    place-items: start;
    gap:10px;
}

.grid-inner-flex p {
    text-align: left;
    font-family: Source Sans Pro;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: #5D778C;
}

.grid-inner-flex h1 {
    text-align: left;
    font-family: Barlow;
    font-size: 24px;
    font-weight: 700;
    line-height: 28.8px;
    text-align: left;

} */



.grid-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Ensures each child takes one column */
    gap: 20px;
}

.grid-inner-flex {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    /* Place in the first column */
}

.grid-inner-flex2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    place-items: flex-start;
    gap: 30px;
    /* Place in the second column */
}

.grid-inner-flex img {
    max-width: 100%;
    height: auto;
}

.heading-name {
    margin: auto;
    width: 80%;
    padding: 20px 0 20px 0;
}

.heading-name h1 {
    width: 100%;
    font-weight: 800;
    color: #051928;
    font-family: Barlow;
    font-size: 64px;
    font-weight: 700;
    line-height: 76.8px;
    text-align: left;
}

.grid-inner-flex2 p,
h3 {
    font-family: Source Sans Pro;
    font-size: 25px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    width: 100%;
    color: #051928;
    height: fit-content;
}


/* Smartphones (Portrait and Landscape) */
@media only screen and (max-width: 480px) {
    .grid-container {
        display: grid;
        /* grid-template-columns: 1fr 1fr; */
        gap: 20px;
        margin-top: 20px;
        width: 80%;
        margin: auto;
        box-shadow: 0px 10px 50px 0px #9D9D9D26;
    }

    .heading-name {
        margin: auto;
        width: 80%;
        padding: 10px 0;
    }

    .heading-name h1 {
        width: 100%;
        font-weight: 800;
        color: #051928;
        font-family: Barlow;
        font-size: 50px;
        font-weight: 700;
        line-height: 76.8px;
        text-align: left;
    }

    .grid-inner-flex2 p,
    h3 {
        font-family: Source Sans Pro;
        font-size: 20px;
        font-weight: 400;
        line-height: 24px;
        text-align: left;
        width: 100%;
        color: #051928;
        height: fit-content;
    }

    .grid-inner-flex2 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        place-items: flex-start;
        gap: 20px;
    }

    .admission .admission-form1 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        place-items: start;
    }

    .admission .admission-form1 h3 {
        color: #C0160E;
        font-weight: 700;
        font-family: Barlow;
        font-size: 13px;
        line-height: 43.2px;
        letter-spacing: 1px;
    }

    .course {
        width: 100%;
        background-color: #051928;
        margin: 10px auto;
        display: block;
        overflow: hidden;
        height: 300px;
        border-radius: 10px;
        -webkit-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
    }
}

@media only screen and (max-width: 380px) {

    /* Styles for screens smaller than 380px */
    .heading-name {
        margin: auto;
        width: 80%;
        padding: 10px 0;
    }

    .heading-name h1 {
        width: 100%;
        font-weight: 800;
        color: #051928;
        font-family: Barlow;
        font-size: 30px;
        font-weight: 700;
        line-height: 76.8px;
        text-align: left;
    }

    .grid-inner-flex2 p,
    h3 {
        font-family: Source Sans Pro;
        font-size: 20px;
        font-weight: 400;
        line-height: 20px;
        text-align: left;
        width: 100%;
        color: #051928;
        height: fit-content;
    }

    .grid-inner-flex2 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        place-items: flex-start;
        gap: 20px;

    }

    .admission .admission-form1 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        place-items: start;
    }

    .admission .admission-form1 h3 {
        color: #C0160E;
        font-weight: 700;
        font-family: Barlow;
        font-size: 13px;
        line-height: 43.2px;
        letter-spacing: 1px;
    }

    .course {
        width: 100%;
        background-color: #051928;
        margin: 10px auto;
        display: block;
        overflow: hidden;
        height: 300px;
        border-radius: 10px;
        -webkit-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
    }
}

/* Tablets (Portrait and Landscape) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .grid-container {
        display: grid;
        /* grid-template-columns: 1fr 1fr; */
        gap: 20px;
        margin-top: 20px;
        width: 80%;
        margin: auto;
        box-shadow: 0px 10px 50px 0px #9D9D9D26;
    }

    .admission .admission-form1 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        place-items: start;
    }

    .admission .admission-form1 h3 {
        color: #C0160E;
        font-weight: 700;
        font-family: Barlow;
        font-size: 36px;
        line-height: 43.2px;
        letter-spacing: 1px;
    }

    .course {
        width: 100%;
        background-color: #051928;
        margin: 10px auto;
        display: block;
        overflow: hidden;
        height: 300px;
        border-radius: 10px;
        -webkit-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
    }
}

/* Small Laptops and Desktops */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 20px;
        width: 80%;
        margin: auto;
        box-shadow: 0px 10px 50px 0px #9D9D9D26;
    }

    .admission .admission-form1 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        place-items: start;
    }

    .admission .admission-form1 h3 {
        color: #C0160E;
        font-weight: 700;
        font-family: Barlow;
        font-size: 36px;
        line-height: 43.2px;
        letter-spacing: 1px;
    }

    .course {
        width: 100%;
        background-color: #051928;
        margin: 10px auto;
        display: block;
        overflow: hidden;
        height: 500px;
        border-radius: 10px;
        -webkit-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
    }
}

/* Medium to Large Desktops */
@media only screen and (min-width: 1025px) and (max-width: 1440px) {
    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 20px;
        width: 80%;
        margin: auto;
        box-shadow: 0px 10px 50px 0px #9D9D9D26;
    }

    .admission .admission-form1 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        place-items: start;
    }

    .admission .admission-form1 h3 {
        color: #C0160E;
        font-weight: 700;
        font-family: Barlow;
        font-size: 36px;
        line-height: 43.2px;
        letter-spacing: 1px;
    }

    .course {
        width: 100%;
        background-color: #051928;
        margin: 10px auto;
        display: block;
        overflow: hidden;
        height: 300px;
        border-radius: 10px;
        -webkit-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
    }
}

/* Large Desktops and Beyond */
@media only screen and (min-width: 1441px) {
    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 20px;
        width: 80%;
        margin: auto;
        box-shadow: 0px 10px 50px 0px #9D9D9D26;
    }

    .admission .admission-form1 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        place-items: start;
    }

    .admission .admission-form1 h3 {
        color: #C0160E;
        font-weight: 700;
        font-family: Barlow;
        font-size: 36px;
        line-height: 43.2px;
        letter-spacing: 1px;
    }

    .course {
        width: 100%;
        background-color: #051928;
        margin: 10px auto;
        display: block;
        overflow: hidden;
        height: 400px;
        border-radius: 10px;
        -webkit-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 0px 31px -19px rgba(0, 0, 0, 0.75);
    }
}